
<div class="main-right">
	<div class="main-right-header">
    	<p class="now-nav">您现在操作的是：<span>添加项目</span></p>
    </div>
    <div class="blank1"></div>
    
    <div class="content">
		<div class="message">
        	<ul style="border:0px; ">
            	<li>
             		<?php  echo $this->message->all(); ?>
             	</li>
            </ul>
        </div>
        
        <form action ="<?php echo site_url('manage/article/project/add') ?>" id="data-form" class="form1" method="post" >
        	<table class="article-table add-table">
            	<tr>
                	<td style="width:100px; ">所属语言：</td>
                	<td>
                    	<select name="language">
                        	<option>请选择所属语言</option>
                            <?php foreach($language_list as $language_row){ ?>
                            	<option> <?php echo $language_row['code'];  ?></option>
                            <?php } ?>
                        </select>
                    </td>
                </tr>
                <tr>
                 	<td>&nbsp;</td>
                    <td>所属语言不能为空</td>
                </tr>
                <tr>
                 	<td>项目名称：</td>
                    <td>
                    	<input type="text" name="name" 
                        	class="{required:true, maxlength:40, messages:{required:'项目名称不能为空', maxlength:'项目名称不能超过40个字符'}}" />
                    </td>
                </tr>
                <tr>
                	<td>&nbsp;</td>
                    <td>项目名称不能为空，最多只能40个字符</td>
               	</tr>
                <tr>
                	<td>项目标题：</td>
                    <td>
                    	<input type="text" name="title" 
                        	class="{required:true, maxlength:40, messages:{required:'项目标题不能为空', maxlength:'项目名称不能超过40个字符'}}" />
                    </td>
               	</tr>
                <tr>
                	<td>&nbsp;</td>
                    <td>项目标题不能为空，最多只能40个字符</td>
                </tr>
                <tr>
                	<td>服务项目：</td>
                    <td>
                    	<span id="service_list"></span> 
                        <a id="select-service" href="javascript:void(0);">选择服务项目</a>
                        <input type="hidden" id="service_id_string" name="service_id_string" value="" 
					    	class="{required:true, messages:{required:'服务项目不能为空'}}" /> 
                   	</td>
                </tr>
                <tr>
                	<td>&nbsp;</td>
                    <td>服务项不能为空</td>
                </tr>
                <tr>
                	<td>关键字描述：</td>
                    <td><input type="text" name="kyewords" class="{required:true, messages:{required:'关键字不能为空'}}"/></td>
               	</tr>
                <tr>
                    <td>&nbsp;</td>
                    <td>关键字不能为空</td>
                </tr>
                <tr>
                	<td>描述：</td>
                    <td><input type="text" name="description" class="{required:true, messages:{required:'描述不能为空'}}"/></td>
                </tr>
                <tr>
                	<td>&nbsp;</td>
                  	<td>描述不能为空</td>
                </tr>
                <tr>
                	<td>url_pattern：</td>
                    <td><input type="text" name="url_pattern" class="{required:true, messages:{required:'项目url_pattern不能为空'}}" /></td>
                </tr>
                <tr>
                	<td>&nbsp;</td>
                    <td>url_pattern不能为空</td>
               	</tr>
                <tr>
                	<td>项目摘要：</td>
                    <td colspan="2"><textarea cols="60" rows="3" name="summary" class="{required:true, messages:{required:'项目摘要不能为空'}}"></textarea></td>
                </tr>
                <tr>
                	<td>&nbsp;</td>
                    <td>项目摘要不能为空</td>
                </tr>
                <tr>
                	<td>项目介绍：</td>
                    <td colspan="2"><textarea cols="60" rows="10" id="content" name="content"></textarea></td>
                </tr>
                <tr>
                	<td>&nbsp;</td>
                    <td>项目介绍不能为空</td>
                </tr>
              	<tr>
              		<td>&nbsp;</td>
              		<td>
              			<input type="submit" name="submit-article" value="添加案例"/>
              		</td>
              	</tr>
			</table>
		</form>
	</div>
    
    <div id="service-dialog" title="选择服务项目" style="display:none; " >
    	<ul>
	    	<?php foreach($service_list as $service) {?>
		    <li>
				<input type="checkbox" id="service_id" name="service_id" value="<?php echo $service['id'] ?>" title="<?php echo $service['name'] ?>" />
			    <span><?php echo $service['name'] ?></span>
		    </li>	
	        <?php } ?>
	    </ul>
    </div>              
</div>

<script type="text/javascript" src="http://source.zongetech.com/nicedit/nicEdit.js"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>app/views/manage/scripts/project_add.js"></script>
    
    